Median Filtering is Equivalent to Sorting
نویسنده
چکیده
This work shows that the following problems are equivalent, both in theory and in practice: • median filtering : given an n-element vector, compute the sliding window median with window size k, • piecewise sorting : given an n-element vector, divide it in n/k blocks of length k and sort each block. By prior work, median filtering is known to be at least as hard as piecewise sorting: with a single median filter operation we can sort Θ(n/k) blocks of length Θ(k). The present work shows that median filtering is also as easy as piecewise sorting: we can do median filtering with one piecewise sorting operation and linear-time postprocessing. In particular, median filtering can directly benefit from the vast literature on sorting algorithms—for example, adaptive sorting algorithms imply adaptive median filtering algorithms. The reduction is very efficient in practice—for random inputs the performance of the new sorting-based algorithm is on a par with the fastest heap-based algorithms, and for benign data distributions it typically outperforms prior algorithms. The key technical idea is that we can represent the sliding window with a pair of sorted doubly-linked lists: we delete items from one list and add items to the other list. Deletions are easy; additions can be done efficiently if we reverse the time twice: First we construct the full list and delete the items in the reverse order. Then we undo each deletion with Knuth’s dancing links technique. ar X iv :1 40 6. 17 17 v1 [ cs .D S] 6 J un 2 01 4
منابع مشابه
A Novel Image Median Filtering Algorithm based on Incomplete Quick Sort Algorithm
Quick sort algorithm is studied thoroughly, a new incomplete quick sort algorithm is designed, and then a novel image median filtering algorithm based on incomplete quick sort algorithm is proposed to improve the filtering speed. The new algorithm considers in detail the characteristic of image median filtering (In median filtering algorithm, the sorting operation of all pixel values is not nec...
متن کاملAn Alternate Algorithm for (3x3) Median Filtering of Digital Images
Median filtering is a commonly used technique in image processing. The main problem of the median filter is its high computational cost (for sorting N pixels, the temporal complexity is O(N·log N), even with the most efficient sorting algorithms). When the median filter must be carried out in real time, the software implementation in general-purpose processors does not usually give good results...
متن کاملA new approach to vector median filtering based on space filling curves
The availability of a wide set of multidimensional information sources in different application fields (e.g., color cameras, multispectral remote sensing imagery devices, etc.) is the basis for the interest of image processing research on extensions of scalar nonlinear filtering approaches to multidimensional data filtering. A new approach to multidimensional median filtering is presented. The ...
متن کاملAn Enhanced Median Filter for Removing Noise from MR Images
In this paper, a novel decision based median (DBM) filter for enhancing MR images has been proposed. The method is based on eliminating impulse noise from MR images. A median-based method to remove impulse noise from digital MR images has been developed. Each pixel is leveled from black to white like gray-level. The method is adjusted in order to decide whether the median operation can be appli...
متن کاملMorphological filters-Part II: Their relations to median, order-statistic, and stack filters
This paper extends the theory of median, order-statistic (OS), and stack filters by using mathematical morphology to analyze them and by relating them to those morphological erosions, dilations, openings, closings, and open-closings that commute with thresh-olding. The max-min representation of OS filters is introduced by showing that any median or other OS filter is equal to a maximum of erosi...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1406.1717 شماره
صفحات -
تاریخ انتشار 2014